From bd517fd062e4913d2c9242d85e47ddda63ae00ec Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 5 Apr 2009 18:12:44 +0000 Subject: [PATCH] * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if `file-modes' returns nil. --- lisp/dired-aux.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 95aaa388310..ffb6f4e9cbf 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1210,7 +1210,7 @@ Special value `always' suppresses confirmation." (or (eq recursive 'always) (yes-or-no-p (format "Recursive copies of %s? " from)))) ;; This is a directory. - (let ((mode (file-modes from)) + (let ((mode (or (file-modes from) #o700)) (files (condition-case err (directory-files from nil dired-re-no-dot) -- 2.30.2